<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
	<head>
		<title>现在加入新浪微博，随时随地一起分享新鲜事！</title>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
		<script type="text/javascript" src="js/jquery.js"></script>
    	<script type="text/javascript" src="js/city.js"></script>
   		<script language="javascript">
			$(function(){
			    initcity();
			});
		</script>
	</head>
	<body>
		<em>${requestScope.message }</em>
		<form action="register" method="post">
			<fieldset>
				<legend>user register</legend>
				<label>email</label>
				<input type="text" name="email" />
				<label>password</label>
				<input type="password" name="password" />
				<label>nick</label>
				<input type="text" name="nick" />
				<label>sex</label>
				<input type="radio" name="sex" value="1" checked="checked" />male
				<input type="radio" name="sex" value="2" />female<br />
				<label>location</label>
				<div id="XMLCity">Loading....</div>
				<label>valid code</label><br />
				<input type="text" name="validcode" />
				<img id="validcode" src="kaptcha.jpg" width="150" />
				<a id="kaptchaImage" href="#">刷新图片</a>
				<script type="text/javascript">
				    $(function(){
				        $('#kaptchaImage').click(function(){
				        	$("#validcode").hide().attr('src', 'kaptcha.jpg?' + Math.floor(Math.random()*100)).fadeIn(1000); 
				        });
				    });
				</script>
				<input type="submit" value="SIGN UP" />
			</fieldset>
		</form>		
	</body>
</html>
